package org.korifey.ffbdd.common.util;

public class IntUtil {
	public static int log2(int x) {
		assert x >= 1;
		
		int res = 0, i = 1;
		while (i<x) {
			res += 1;
			i = i*2;
		}
		return res;
	}
}
